package br.com.jdobjs.core;

import org.jboss.aop.joinpoint.MethodInvocation;

public class BeforeCallRuleSecurityInterceptor extends
		AbstractRuleSecurityInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		if (!verifyAccess(invocation, null, InvocationStep.BeforeInvocation)) {
			throw new AccessDeniedBeforeInvocationException(invocation);
		}
		return invocation.invokeNext();
	}
}
